import request from '@/utils/request'

// 查询入库管理列表
export function listEntry(query) {
  return request({
    url: '/entry/entry/list',
    method: 'get',
    params: query
  })
}

// 查询入库管理详细
export function getEntry(entryId) {
  return request({
    url: '/entry/entry/' + entryId,
    method: 'get'
  })
}

// 新增入库管理
export function addEntry(data) {
  return request({
    url: '/entry/entry',
    method: 'post',
    data: data
  })
}

// 修改入库管理
export function updateEntry(data) {
  return request({
    url: '/entry/entry',
    method: 'put',
    data: data
  })
}

// 删除入库管理
export function delEntry(entryId) {
  return request({
    url: '/entry/entry/' + entryId,
    method: 'delete'
  })
}

export function getWarehouseList1() {
  return request({
    url: '/entry/entry/getWarehouseList',
    method: 'get',
  })
}

export function getcommodityList1() {
  return request({
    url: '/entry/entry/getcommodityList',
    method: 'get',
  })
}
